//引入外部资源包
var express = require('express')

//实例化对象
var app = express()

//注册监听文件
app.use(express.static('static'))

//post请求获取参数语法
app.use( express.json() );
app.use( express.urlencoded({extended:false}) );

var user = require('./son/user.js')

app.use('/user' , user)

app.listen(8181 , console.log(111))